package router

import (
	jwt "gitee.com/sansaniot/ssiot-core/httpmvc/jwtauth"
	"github.com/gin-gonic/gin"

	"ssadmin/internal/admin/apis"
)

func init() {
	AuthRouters = append(AuthRouters, registerDataDetailRouter)
}

func registerDataDetailRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
	api := apis.DataDetail{}
	r := v1.Group("/api/auth/data-stat").Use(authMiddleware.MiddlewareFuncWithOutValidate())
	{
		r.GET("/", api.FindDetailStat)
	}
}
